<include file="Public:header"/>
<script type="text/javascript" src="__WEBPUBLIC__/Admin/js/ajax-operate.js"></script>
<!--主页面-->
<div id="main-content" class="content">
    <ul class="breadcrumb">
        <li><a href="/">首页</a></li>
        <li class="active"><a href="">权限管理</a></li>
        <li class="active">管理组列表</li>
    </ul>

    <div class="page-header clearfix">
        <h3>管理组列表</h3>
        <ul class="nav nav-tabs">
            <li  class="active">
                <a href="{:U('Group/groupList')}">管理组列表</a>
            </li>
            <li  class="">
                <a href="{:U('Group/addGroup')}">添加管理组</a>
            </li>
        </ul>
    </div>
    <include file="Public:notification"/>

    <div class="content-box-content">
        <form action="{:U('Group/deleteGroup')}" method="post" class="batch-form">
            <table class="table table-striped table-framed table-hover">
                <thead>
                    <tr>
                        <th width="8%">
                            <input class="check-all" type="checkbox" />&nbsp;&nbsp;编号
                        </th>
                        <th>组名</th>
                        <th width="40%">授权</th>
                        <th>添加时间</th>
                        <th width="6%">操作</th>
                    </tr>
                </thead>
                    <!--标题 end-->

                    <!--内容 start-->
                    <tbody class="tbody">
                    <if condition="empty($list)">
                        <tr><td colspan="10"><span style="font-size:14px;" 暂无数据</span></td></tr>
                    </if>
                    <volist name="list" id="vo">
                        <tr>
                            <td><input type="checkbox" name="group_id[]" value="{$vo['group_id']}"/>&nbsp;&nbsp;{$vo['group_id']}</td>
                            <td>{$vo['group_name']}</td>
                            <td>{$vo['per']|mb_substr=0,35,'utf-8'}..</td>
                            <td>{$vo['ctime']|date="Y-m-d H:i:s",###}</td>
                            <td style="vertical-align:middle">
                                <a href="{:U('Group/editGroup',array('group_id'=>$vo['group_id']))}" title="修改" class="modify">
                                    <span class="icon glyphicon glyphicon-pencil"></span>
                                </a>&nbsp;
                                <a href="#" title="删除" class="delete-delete">
                                   <span class="icon glyphicon glyphicon-remove"></span>
                                </a><input type="hidden" value="{:U('Group/deleteGroup',array('group_id'=>$vo['group_id']))}">
                            </td>
                        </tr>
                    </volist>
                    </tbody>
                    <!--内容 end-->

                    <!--表尾 start-->
                    <tfoot>
                    <tr>
                        <td colspan="20">
                            <div class="bulk-actions fl">
                                <input class="btn delete-batch" type="button" value="批量删除"/>
                            </div>
                            <div class="fr">
                                {$page}
                            </div>
                        </td>
                    </tr>
                    </tfoot>
                    <!--表尾 end-->
                </table>
                </form>
            </div>
            <!--内容表格 end-->
</div>
<!--主页面 end-->
<script type="text/javascript">
    $(document).ready(function(){
        $('.sort_order').blur(function(){
            var id = $(this).next('input').val();
            var sort = $(this).val();
            ajaxEditSort('{:U("Advert/editSort")}',id,sort);
        });
    });
</script>
<include file="Public:footer"/>
